from django.urls import path
from . import views

urlpatterns = [
    path('', views.index, name='index'),

    path('reg1a/list/', views.list_data1a, name='list_data1a'),
    path('reg1a/create/', views.create_data1a, name='create_data1a'),
    path('reg1a/update/<int:pk>/', views.update_data1a, name='update_data1a'),
    path('reg1a/delete/<int:pk>/', views.delete_data1a, name='delete_data1a'),

    path('reg2a/list/', views.list_data2a, name='list_data2a'),
    path('reg2a/create/', views.create_data2a, name='create_data2a'),
    path('reg2a/update/<int:pk>/', views.update_data2a, name='update_data2a'),
    path('reg2a/delete/<int:pk>/', views.delete_data2a, name='delete_data2a'),

    path('reg3a/list/', views.list_data3a, name='list_data3a'),
    path('reg3a/create/', views.create_data3a, name='create_data3a'),
    path('reg3a/update/<int:pk>/', views.update_data3a, name='update_data3a'),
    path('reg3a/delete/<int:pk>/', views.delete_data3a, name='delete_data3a'),

    path('reg1c/list/', views.list_data1c, name='list_data1c'),
    path('reg1c/create/', views.create_data1c, name='create_data1c'),
    path('reg1c/update/<int:pk>/', views.update_data1c, name='update_data1c'),
    path('reg1c/delete/<int:pk>/', views.delete_data1c, name='delete_data1c'),

    path('reg2c/list/', views.list_data2c, name='list_data2c'),
    path('reg2c/create/', views.create_data2c, name='create_data2c'),
    path('reg2c/update/<int:pk>/', views.update_data2c, name='update_data2c'),
    path('reg2c/delete/<int:pk>/', views.delete_data2c, name='delete_data2c'),

    path('reg3c/list/', views.list_data3c, name='list_data3c'),
    path('reg3c/create/', views.create_data3c, name='create_data3c'),
    path('reg3c/update/<int:pk>/', views.update_data3c, name='update_data3c'),
    path('reg3c/delete/<int:pk>/', views.delete_data3c, name='delete_data3c'),

    path('reg12c/list/', views.list_data12c, name='list_data12c'),
    path('reg12c/create/', views.create_data12c, name='create_data12c'),
    path('reg12c/update/<int:pk>/', views.update_data12c, name='update_data12c'),
    path('reg12c/delete/<int:pk>/', views.delete_data12c, name='delete_data12c'),

    path('reg12a/list/', views.list_data12a, name='list_data12a'),
    path('reg12a/create/', views.create_data12a, name='create_data12a'),
    path('reg12a/update/<int:pk>/', views.update_data12a, name='update_data12a'),
    path('reg12a/delete/<int:pk>/', views.delete_data12a, name='delete_data12a'),

    path('reg_all_c/list/', views.list_dataallc, name='list_dataallc'),
    path('reg_all_c/create/', views.create_dataallc, name='create_dataallc'),
    path('reg_all_c/update/<int:pk>/', views.update_dataallc, name='update_dataallc'),
    path('reg_all_c/delete/<int:pk>/', views.delete_dataallc, name='delete_dataallc'),

    path('reg_all_a/list/', views.list_dataalla, name='list_dataalla'),
    path('reg_all_a/create/', views.create_dataalla, name='create_dataalla'),
    path('reg_all_a/update/<int:pk>/', views.update_dataalla, name='update_dataalla'),
    path('reg_all_a/delete/<int:pk>/', views.delete_dataalla, name='delete_dataalla'),

    path('register/', views.register, name='register'),  # 注册页面
    path('login/', views.user_login, name='login'),  # 登录页面
    path('logout/', views.user_logout, name='logout'),  # 登出页面
]